* x-win.el: Check for a geometry resource, and apply it to the
authorJim Blandy <jimb@redhat.com>
Thu, 27 May 1993 05:38:12 +0000 (05:38 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 27 May 1993 05:38:12 +0000 (05:38 +0000)
initial frame.

lisp/term/x-win.el

index 84a09026618349b384ed96a7d143423ae1ef1426..06f7d375b74ba76c549a72988a66626783017201 100644 (file)
@@ -521,6 +521,14 @@ This returns ARGS with the arguments that have been processed removed."
 
 (setq frame-creation-function 'x-create-frame-with-faces)
 
+;; Apply a geometry resource to the initial frame.  Put it at the end
+;; of the alist, so that anything specified on the command line takes
+;; precedence.
+(let ((res-geometry (x-get-resource "geometry" "Geometry")))
+  (if res-geometry
+      (setq initial-frame-alist (append initial-frame-alist
+                                       (x-parse-geometry res-geometry)))))
+
 (defun x-win-suspend-error ()
   (error "Suspending an emacs running under X makes no sense"))
 (add-hook 'suspend-hook 'x-win-suspend-error)